package ar.edu.unq.mongodbexample.homes;

import java.util.List;

import ar.edu.unq.mongodbexample.model.Subject;
import ar.edu.unq.mongodbexample.persistence.MongoDBManager;

import com.google.code.morphia.dao.BasicDAO;

public class SubjectHome extends BasicDAO<Subject, String> implements IHome<Subject>{
	public SubjectHome() {
        super(Subject.class, MongoDBManager.getInstance().getDataStore());
        MongoDBManager.getInstance().getMorphia().map(Subject.class);
	}

	public int saveAll(List<Subject> entityList) {
		// TODO Auto-generated method stub
		return 0;
	}

	public List<Subject> getAll() {
		// TODO Auto-generated method stub
		return null;
	}

	public Subject findById(Object id) {
		 return this.ds.get(Subject.class, id);
	}
}
